<div class="panel-header"><h1 class="panel-title">Каталог популярных марок - <?php echo $this->markCount;?> единиц</h1></div>
<div>
    <?php 
        $maxFontSize = 18;
        $minFontSize = 9;
        
//        $minToMax = $this->min/$this->max;
    ?>
    <?php foreach($this->marks as $mark):?>
        <?php $fSize = $mark['cnt']*$maxFontSize/2000;?>
        <a 
            href="search/search/mark/<?php echo $mark['id'] ?>" 
            style="margin:5px 8px;font-size:<?php echo round(($fSize+4)/8)<9?9:round(($fSize+4)/8)>18?18:round(($fSize+4)/8);?>px;"
        >
        <?php echo $mark['name']?> (<?php echo $mark['cnt']?>)
        </a>
    <?php endforeach;?>
</div>